Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Italic Style for QDialog title
Forum Updated to NodeBB v4.3 + New Features

Italic Style for QDialog title

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mourad_bilog
    wrote on last edited by
    #1

    Hello everybody,

    I need to write my QDialog title with italic style. I've searched and tried a lot but I think this is no possible.

    Can anyone confirm this or tell me how to do to resolve this problem.

    Many thanks in advance.

    Best regards

    1 Reply Last reply
    0
    • ValentinMicheletV Offline
      ValentinMicheletV Offline
      ValentinMichelet
      wrote on last edited by
      #2

      I'm afraid you'll have to subclass QDialog and reimplement the paint event:
      http://www.qtcentre.org/threads/25974-stylesheet-to-QDialog-Title-Bar

      M 1 Reply Last reply
      0
      • ValentinMicheletV ValentinMichelet

        I'm afraid you'll have to subclass QDialog and reimplement the paint event:
        http://www.qtcentre.org/threads/25974-stylesheet-to-QDialog-Title-Bar

        M Offline
        M Offline
        mourad_bilog
        wrote on last edited by
        #3

        @ValentinMichelet Many thanks pour your reply. I've tried this but subclassing the QDialog gives me two title bars !!

        Anyway this can't resolve my problem.

        It seems that the window title is by provided by the system not the application....

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Indeed, the window decorations (including the title bar) are provided by the OS's windowing system, not QT.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved