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. Increase size of QFIleDIalog?
Forum Updated to NodeBB v4.3 + New Features

Increase size of QFIleDIalog?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 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.
  • A Offline
    A Offline
    Antweb
    wrote on last edited by
    #1

    gps_file = QFileDialog::getOpenFileName(this, tr("Open File"),
    "/home/apaul/Downloads", tr("GPS-Files (*.txt)"),0,QFileDialog::DontUseNativeDialog);

    When I use this statement, is there some way to increase font size of the text that appears in the FIle DIalog?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      its a static function that creates its own FileDialog.
      but if you apply a style sheet to the parent, it does apply to it too
      like

       this->setStyleSheet("QTreeView {font: 16pt \"Arial\";}")
      

      there "this" is the same this as you use in the call
      QFileDialog::getOpenFileName(this, ......

      since this also affects the font size of the parent's other QTreeView ,
      it maybe be a good idea to restore font size after/restore stylesheet or
      find out the exact name of the sub control inside the QFileDialog and target that by name.

      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