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. [SOLVED] QTabWidget tabName and qplaintextedit::textChanged() signal problem
QtWS25 Last Chance

[SOLVED] QTabWidget tabName and qplaintextedit::textChanged() signal problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
qplaintexteditqstringqtabwidget
31 Posts 3 Posters 9.7k 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.
  • T Offline
    T Offline
    takoo
    wrote on 9 Feb 2016, 18:14 last edited by
    #20

    @mrjj I've identified problem. not see anything about qTabWidget in function textChanged()

    I just write code ------- (-_-) ----------

    M 1 Reply Last reply 10 Feb 2016, 06:57
    0
    • T takoo
      9 Feb 2016, 18:14

      @mrjj I've identified problem. not see anything about qTabWidget in function textChanged()

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 10 Feb 2016, 06:57 last edited by
      #21

      @takoo
      Ok, im sure what u changed?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        takoo
        wrote on 10 Feb 2016, 07:28 last edited by
        #22

        i sent scripts. You can see

        I just write code ------- (-_-) ----------

        M 1 Reply Last reply 10 Feb 2016, 08:13
        0
        • T takoo
          10 Feb 2016, 07:28

          i sent scripts. You can see

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 10 Feb 2016, 08:13 last edited by
          #23

          @takoo
          Ohh, the function was empty??

          1 Reply Last reply
          0
          • T Offline
            T Offline
            takoo
            wrote on 10 Feb 2016, 20:12 last edited by
            #24

            @mrjj Nothing happens when I wrote related qtabwidget in that function(addStar)

            I just write code ------- (-_-) ----------

            1 Reply Last reply
            0
            • T Offline
              T Offline
              takoo
              wrote on 10 Feb 2016, 21:05 last edited by
              #25

              @mrjj http://www116.zippyshare.com/v/M9f6gXaM/file.html
              Try to run this project (myTabs)

              I just write code ------- (-_-) ----------

              M 1 Reply Last reply 11 Feb 2016, 19:57
              0
              • T takoo
                10 Feb 2016, 21:05

                @mrjj http://www116.zippyshare.com/v/M9f6gXaM/file.html
                Try to run this project (myTabs)

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 11 Feb 2016, 19:57 last edited by mrjj 2 Nov 2016, 20:00
                #26

                @takoo
                hi
                you create a new version of main window here

                plaint::plaint(QWidget *parent):QPlainTextEdit(parent)
                {
                  mw=new MainWindow();<<---------------- new main wind
                  connect(this,SIGNAL(textChanged()),mw,SLOT(yildiz()));
                }
                

                mw is never shown and u never see u change the tabtext in this new version you create.

                in main.cpp, you already create a Mainwindow version so not sure why u create a new one. ?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  takoo
                  wrote on 11 Feb 2016, 20:02 last edited by
                  #27

                  @mrjj hi
                  exactly what I need to do ?

                  I just write code ------- (-_-) ----------

                  M 1 Reply Last reply 11 Feb 2016, 20:06
                  0
                  • T takoo
                    11 Feb 2016, 20:02

                    @mrjj hi
                    exactly what I need to do ?

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 11 Feb 2016, 20:06 last edited by mrjj 2 Nov 2016, 20:11
                    #28

                    @takoo
                    well It really depends what u want ?
                    Im not sure why you have
                    class plaint:public QPlainTextEdit
                    Instead of just using QPlainTextEdit directly ?

                    update:
                    i fixed the sample to do what u talked about first.
                    To change the tabtext for the tab.
                    https://www.dropbox.com/s/eezslmryro6ptrj/mytabs.zip?dl=0

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      takoo
                      wrote on 11 Feb 2016, 20:24 last edited by
                      #29

                      @mrjj thanks :D Solved

                      I just write code ------- (-_-) ----------

                      M 1 Reply Last reply 11 Feb 2016, 20:26
                      0
                      • T takoo
                        11 Feb 2016, 20:24

                        @mrjj thanks :D Solved

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 11 Feb 2016, 20:26 last edited by
                        #30

                        @takoo
                        So all came from u had 2 windows but the second was never shown so
                        it seem that nothing happened. :)
                        code help for me to undestand, so good idea :)

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          takoo
                          wrote on 11 Feb 2016, 20:31 last edited by
                          #31

                          @mrjj that is right :D

                          I just write code ------- (-_-) ----------

                          1 Reply Last reply
                          1

                          29/31

                          11 Feb 2016, 20:24

                          • Login

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