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. How can you give a line text an auto incrementing default value from within QtDesigner?
Forum Updated to NodeBB v4.3 + New Features

How can you give a line text an auto incrementing default value from within QtDesigner?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views 1 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.
  • L Offline
    L Offline
    Little Red Wolf
    wrote on last edited by
    #1

    For instance I have a dialog that lets the user create new documents. The default name of the document should be 'Document n', where n is the incremented integer count of the last used free number. So the first document is 'Document 1', the next one is 'Document 2', etc. Is it possible to express this in QtDesigner?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Since this is program logic (the document name is not just something superficial that lives in the user interface, but an important property of the file representation in the application), even if it were possible to do it in QtDesigner – which I don't think it is – it should be done programmatically.

      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