Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,080
    • Issues 2,080
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #21697
Closed
Open
Created Apr 10, 2012 by FPC Admin account@fpc_adminOwner

TStaticText behaves differently in GTK2 and Qt4

Original Reporter info from Mantis: Blaazen @Blaazen
  • Reporter name: Vojtech Cihak

Description:

Longer text is spitted in GTK2 but not in Qt (when AutoSize=True).

I don't provide demo project because it is both design time and run time problem and easy to reproduce:

  1. Add TStaticText to Form
  2. Set its text (caption property) longer, like: "StaticText1gsdfgbfdsgb"
  3. Set its AutoSize property to True (now Width cannot be changed).

Result:
On Qt4 text is in one line
On GTK2 it is splitted to two lines, like this:
StaticText1
gsdfgbfdsgb
or similar.

Additional information:

GTK2: fpc 20780 / Laz.: 36707
Qt4: Lazarus 0.9.31 r35805M FPC 2.5.1 x86_64-linux-qt

but IIRC it is older problem.

Mantis conversion info:

  • Mantis ID: 21697
  • Version: 0.9.31 (SVN)
  • Fixed in revision: 36711 (#c5accacd)
Assignee
Assign to
Time tracking