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. QPrintDialog not saving settings?
QtWS25 Last Chance

QPrintDialog not saving settings?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 641 Views
  • 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
    MCMic
    wrote on last edited by
    #1

    Hello, I'm working on a photobooth application : http://projects.haxx.es/p/qphotobooth/

    I'm having some trouble with QPrinter and QPrintDialog.
    As you can see in my code, I keep a QPrinter object as an attribute of my main window. When the menu button print settings is clicked I open a QPrintDialog for it.
    What bugs me is that if I select a printer and options, click [OK], and then click print settings again, my changes are not there, the printer is back to the default one and if I select the one I want again I see the default settings.

    Do someone understand what is happenning? How is QPrintDialog supposed to be used when we want to save the settings for later?
    Also, is it possible to save theses settings in a QSettings object? Right now I save each setting I can separately but it's not really great.

    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